package com.t282.crm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Mr.Chen
 * @since 2021-05-19
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    @ApiModel(value="SalChance对象", description="")
public class SalChance extends Model<SalChance> {

    private static final long serialVersionUID=1L;

      @ApiModelProperty(value = "编号")
        @TableId(value = "chc_id", type = IdType.AUTO)
      private Long chcId;

      @ApiModelProperty(value = "机会来源")
      private String chcSource;

      @ApiModelProperty(value = "客户名称")
      private String chcCustName;

      @ApiModelProperty(value = "概要")
      private String chcTitle;

      @ApiModelProperty(value = "成功机率")
      private Integer chcRate;

      @ApiModelProperty(value = "负责人")
      private String chcLinkman;

      @ApiModelProperty(value = "公司电话")
      private String chcTel;

      @ApiModelProperty(value = "机会描述")
      private String chcDesc;

      @ApiModelProperty(value = "创建人编号")
      private Long chcCreateId;

      @ApiModelProperty(value = "创建人姓名")
      private String chcCreateBy;

      @ApiModelProperty(value = "创建时间")
      private Date chcCreateDate;

      @ApiModelProperty(value = "指派人编号")
      private Long chcDueId;

      @ApiModelProperty(value = "指派人姓名")
      private String chcDueTo;

      @ApiModelProperty(value = "指派时间")
      private Date chcDueDate;

      @ApiModelProperty(value = "销售机会状态")
      private String chcStatus;


    @Override
    protected Serializable pkVal() {
          return this.chcId;
      }

}
